﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador/Administrador.Master" 
    AutoEventWireup="true" CodeBehind="consultaRepuestoAdmin.aspx.cs" 
    Inherits="TodoSuspensionWeb.consultaRepuestoAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 132px;
        }
        .style5
        {
            text-align: left;
        }
        .style6
        {
            text-align: center;
            text-decoration: underline;
            font-family: "Courier New", Courier, "espacio sencillo";
            font-size: x-large;
        }
        .style7
        {
            font-family: Gisha;
        }
        .style8
        {
            text-align: left;
        }
        .style9
        {
            text-align: left;
            width: 59px;
        }
        .style10
        {
            text-align: left;
            width: 282px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div id="divContenedor">
        <table style="width: 100%;">
            <tr>
                <td class="style6" colspan="4">
                    <strong class="style7">CONSULTA ONLINE</strong></td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;</td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style9">
                    Marca:</td>
                <td class="style4">
                    <asp:DropDownList ID="ddlMarca" runat="server" Width="100%">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style9">
                    Rubro:</td>
                <td class="style4">
                    <asp:DropDownList ID="ddlRubro" runat="server" Width="100%">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;</td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style8" colspan="2">
                    <asp:Button ID="btnBuscar" runat="server" Text="BUSCAR" Width="100%" 
                        onclick="btnBuscar_Click" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;</td>
                <td class="style8" colspan="2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style5" colspan="4">
                    <asp:GridView ID="gdvRepuesto" runat="server" Width="100%" 
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" AllowPaging="True" 
                        onpageindexchanging="gdvRepuesto_PageIndexChanging" PageSize="5">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="descripcion" HeaderText="DESCRIPCION" />
                            <asp:BoundField DataField="marca" HeaderText="MARCA" />
                            <asp:BoundField DataField="precio" DataFormatString="{0:C}" 
                                HeaderText="PRECIO" />
                            <asp:BoundField DataField="rubro" HeaderText="RUBRO" />
                            <asp:ImageField DataImageUrlField="codigoRepuesto" 
                                DataImageUrlFormatString="../ImageCSharp.aspx?ImageID={0}" 
                                HeaderText="IMAGEN"
                                ControlStyle-Width = "100" ControlStyle-Height = "100">
                            </asp:ImageField>
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
